package Java实验.实验六;
//请在此添加实现代码

/********** Begin **********/
public class ThreadClassTwo implements Runnable {
    private String name;
    private Thread mythread;

    public ThreadClassTwo(String name) {
        super();
        this.name = name;
    }

    public void run() {
        System.out.println("进程" + name + "运行中");
        System.out.println(" " + 0 + " " + 2 + " " + 4 + " " + 6 + " " + 8 + " " + 10);
    }

    public void start() {
        System.out.println("进程" + name + "运行中");
        if (mythread == null) {
            mythread = new Thread(this.name);
            mythread.start();
        }
    }
}
/********** End **********/